package com.gameGroups.ServiceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gameGroups.Dto.UserInfoDto;
import com.gameGroups.Dto.WorksDto;
import com.gameGroups.Mapper.UpdateUserInfoMapper;
import com.gameGroups.Service.UpdateUserInfoService;
@Service
public class UpdateUserInfoServiceImp implements UpdateUserInfoService {
	@Autowired
	private UpdateUserInfoMapper updateUserInfoMapper;
	
	//查询用户信息
	public UserInfoDto queryUserInfo(String uid) {
		return updateUserInfoMapper.queryUserInfo(uid);
	}
	
	//修改用户信息
	public Integer updateUserInfo(UserInfoDto userInfo) {
		return updateUserInfoMapper.updateUserInfo(userInfo);
	}

	public List<WorksDto> queryWorksList(String uid) {
		return updateUserInfoMapper.queryWorksList(uid);
	}

	public Integer cancelFocus(String uid, String newFocus) {
		return updateUserInfoMapper.cancelFocus(uid,newFocus);
	}
}
